package org.gbis.openbus.controller;

import javax.servlet.http.HttpServletRequest;

import org.gbis.openbus.SearchResult;
import org.gbis.openbus.SearchRoute;
import org.gbis.openbus.db.DbManager;
import org.gbis.openbus.db.DbManagerSearchRoute;
import org.gbis.openbus.webbean.WebBean;
import org.gbis.openbus.webbean.WebBeanSearchRoute;

public class ApiSearchRouteController extends ApiBaseController {

	@Override
	public String getViewJspName() {
		return "/api/jsp/m001_busStation.jsp";
	}

	@Override
	public void createSampleData( SearchResult searchResult ) {
		searchResult.addItem(new SearchRoute( ));
		searchResult.addItem(new SearchRoute( ));
		searchResult.addItem(new SearchRoute( ));
	}

	@Override
	public WebBean createWebBean( HttpServletRequest request ) {
		return WebBeanSearchRoute.getNewWebBeanSearchRoute(request);
	}

	@Override
	public DbManager getDbManager() {
		return DbManagerSearchRoute.getDbManager();
	}
}
